package com.hhsjdesign.dynamicui.core.property.widget

import com.hhsjdesign.dynamicui.core.property.WidgetSpecProperty
import org.json.JSONObject

//banner指示器
open class BannerIndicatorProperty : WidgetSpecProperty {

    constructor() {
        indicator = 1
        indicatorAlign = 0
        indicatorSelectColor = "#88ffffff"
        indicatorNormalColor = "#ffffffff"
        indicatorMarginBottom = 50
    }

    constructor(jo: JSONObject) : super(jo) {
        indicator = jo.optInt("indicator")
        indicatorAlign = jo.optInt("indicatorAlign")
        indicatorSelectColor = jo.optString("indicatorSelectColor")
        indicatorNormalColor = jo.optString("indicatorNormalColor")
    }

    //指示器样式 (圆。圆角。方)
    var indicator: Int = 0

    //指示器位置 (居左。居右。居中)
    var indicatorAlign: Int = 0

    //指示器距底部位置
    var indicatorMarginBottom: Int = 30

    //指示器选中颜色
    var indicatorSelectColor: String? = null

    //指示器背景颜色
    var indicatorNormalColor: String? = null
}
